﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HotShot.Service.BusinessLogic.MessageProcessors
{
    // both for broadcast and specific messages
    public class GetKnownNodesProcessor: MessageProcessorBase
    {
        public override void ProcessMessage(HotShot.Entities.Messages.BaseMessage message, string correlationId)
        {
            var result = Messages.KnownNodes(ClusterProcessorLogic.Current.GetKnownNodes(true, false));
            QueueCommunicationLogic.Current.SendInputMessage(message.ReturnAddress, result, correlationId);
        }
    }
}
